<!DOCTYPE html>
{% load static %}
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{% static 'css/layui.css' %}">
{% block css %}{% endblock %}
<script src="{% static 'layui.js' %}"></script>
<script src="/static/js/login/js.cookie.min.js"></script>
{% block headerjs %}{% endblock %}
</head>
<body>

<!-- 内容主体区域 -->
<div style="padding: 15px;">
    <div class="layui-row layui-col-space10">
      <div class="layui-col-md12">
      {% block content %}
        {% endblock %}
      </div>
    </div>
</div>

{% block endjs %}{% endblock %}

<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element,
  csrftoken = Cookies.get('csrftoken'),
  $ = layui.jquery;
  $.ajaxSetup({
		  headers: {'X-CSRFToken': csrftoken}
  });
});
</script>
</body>
</html>